package com.mycompany.j2eem.Entity;

import java.util.ArrayList;
import java.util.List;
import lombok.Data;

/**
 *
 * @author asus
 */
@Data
public class ShowMovement {

    public ShowMovement(String id, String title, String time,List<PictureId> mypath) {
        this.id = id;
        this.title = title;
        this.time = time;
        mypath.stream().forEach(x->{
            path.add(x.getPicturepath());
            pictureId.add(x.getPicture_id());
        });
    }
    
    public  void isavailable(String id){
        this.available = id;
    }

    String id;
    String title;
    String time;
    List<String> path = new ArrayList();
    List<String> pictureId = new ArrayList();
    String available;
    
}
